<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/1/4 0004
  Time: 上午 10:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>12366渠道分析</title>
</head>
<body>
<div class="content-wrapper">
    <h3>12366渠道分析</h3>
    <div class="row">
        <div class="widget col-sm-4">
            <div class="row row-table">
                <div class="row row-table bg-primary">
                    <div class="col-xs-3 text-center bg-primary-dark  pv-lg">
                        <em class="icon-call-in fa-3x"></em>
                    </div>
                    <div class="col-xs-9 pv-lg">
                        <div class="h2 mt0">86%</div>
                        <div class="text-uppercase">12366当日接通率</div>
                        <hr/>
                        <div class="row">
                            <div class="col-xs-6">
                                <div class="h4 mt0">76%
                                </div>
                                <div style="font-size: 10px;">坐席负载</div>
                            </div>
                            <div class="col-xs-6">
                                <div class="h4 mt0">3分钟
                                </div>
                                <div style="font-size: 10px;">平均等待时长</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-5">
            <div class="panel-heading"></div>
            <div id="chart1" style="height: 182px;"></div>

        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading"></div>
                <div class="panel-body">
                    <div id="chart3" style="height: 420px;"></div>
                </div>
            </div>
        </div>

        <%--<div class="col-sm-5">

            <div class="panel panel-default">
                <div class="panel-heading"></div>
                <div class="panel-body">
                    <div id="chart4" style="height: 420px;"></div>
                </div>
            </div>
        </div>--%>
    </div>

    <div class="row">
        <div class="col-sm-6">
            <div class="panel panel-default">
                <div class="panel-heading"></div>
                <div class="panel-body">
                    <div id="chart2" style="height: 420px;"></div>
                </div>
            </div>
        </div>

        <div class="col-sm-6">
            <div class="panel panel-default">
                <div class="panel-heading"></div>
                <div class="panel-body">
                    <div id="chart5" style="height: 420px;"></div>
                </div>
            </div>
        </div>
    </div>

</div>


<script>
    var labelTop = {
        normal : {
            label : {
                show : true,
                position : 'center',
                formatter : '{b}',
                textStyle: {
                    baseline : 'bottom'

                }
            },
            labelLine : {
                show : false
            }
        }
    };
    var labelFromatter = {
        normal : {
            label : {
                formatter : function (params){
                    return 100 - params.value + '%'
                },
                textStyle: {//圈内文本样式
                    baseline : 'top',
                    fontSize: 12,

                }
            }
        },
    }
    var labelBottom = {
        normal : {
            color: '#ccc',
            label : {
                show : true,
                position : 'center',
                textStyle: {       // 圈内百分比文字样式
                    fontSize: 22,
                    fontWeight: 'bolder'
                }
            },
            labelLine : {
                show : false
            }
        },
        emphasis: {
            color: 'rgba(0,0,0,0)'
        }
    };
    var radius = [45, 60];//内外半径
    var chartOption1 = {
        legend: {
            x : 'center',
            y : 'center',
            data:[
                '',''
            ]
        },


        series : [
            {
                type : 'pie',
                center : ['30%', '40%'],
                radius : radius,
                x: '40%', // for funnel
                itemStyle : labelFromatter,
                data : [
                    {name:'other', value:23, itemStyle : labelBottom},
                    {name:'本月全省接通率', value:77,itemStyle : labelTop}
                ]
            },
            {
                type : 'pie',
                center : ['70%', '40%'],
                radius : radius,
                x:'20%', // for funnel
                itemStyle : labelFromatter,
                data : [
                    {name:'other', value:26, itemStyle : labelBottom},
                    {name:'本年全省接通率', value:74,itemStyle : labelTop}
                ]
            }
        ]
    };




    //chart2
    var idx = 1;
    var chartOption2 = {
        timeline : {
            data : [
                '2015-01-01', '2015-02-01', '2015-03-01', '2015-04-01', '2015-05-01','2015-06-01',
                //{ name:'2015-06-01', symbol:'emptyStar6', symbolSize:8 },
                '2015-07-01', '2015-08-01', '2015-09-01', '2015-10-01', '2015-11-01','2015-12-01'
                //{ name:'2015-12-01', symbol:'star6', symbolSize:8 }
            ],
            label : {
                formatter : function(s) {
                    return s.slice(0, 7);
                }
            }
        },
        options : [
            {
                title : {
                    text: '当月平均等待时间分城市统计',
                    subtext: ''
                },
                tooltip : {
                    trigger: 'item',
                    formatter: "{a} <br/>{b} : {c} ({d}%)"
                },


                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        center: ['50%', '45%'],
                        radius: '50%',
                        data:[
                            {value: idx * 28 + 8,  name:'南京'},
                            {value: idx * 4  + 1,  name:'苏州'},
                            {value: idx * 3  + 3,  name:'无锡'},
                            {value: idx * 16  + 6,  name:'常州'},
                            {value: idx++ * 8  + 4, name:'徐州'},
                            {value: idx * 2 + 8,  name:'泰州'},
                            {value: idx * 6  + 16,  name:'连云港'},
                            {value: idx * 2  + 3,  name:'扬州'},
                            {value: idx * 6  + 6,  name:'盐城'},
                            {value: idx++ * 8  + 12, name:'南通'},
                            {value: idx * 18 + 8,  name:'淮安'},
                            {value: idx * 6  + 16,  name:'宿迁'},
                            {value: idx * 2  + 3,  name:'镇江'}

                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 18 + 8,  name:'南京'},
                            {value: idx * 14  + 10,  name:'苏州'},
                            {value: idx * 2  + 30,  name:'无锡'},
                            {value: idx * 6  + 10,  name:'常州'},
                            {value: idx++ * 8  + 10, name:'徐州'},
                            {value: idx * 8 + 80,  name:'泰州'},
                            {value: idx * 6  + 10,  name:'连云港'},
                            {value: idx * 1  + 30,  name:'扬州'},
                            {value: idx * 16  + 60,  name:'盐城'},
                            {value: idx++ * 2  + 10, name:'南通'},
                            {value: idx * 18 + 8,  name:'淮安'},
                            {value: idx * 64  + 1,  name:'宿迁'},
                            {value: idx * 1  + 30,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 58 + 80,  name:'南京'},
                            {value: idx * 64  + 16,  name:'苏州'},
                            {value: idx * 32  + 32,  name:'无锡'},
                            {value: idx * 16  + 64,  name:'常州'},
                            {value: idx++ * 8  + 1, name:'徐州'},
                            {value: idx * 28 + 80,  name:'泰州'},
                            {value: idx * 64  + 1,  name:'连云港'},
                            {value: idx * 32  + 3,  name:'扬州'},
                            {value: idx * 16  + 6,  name:'盐城'},
                            {value: idx++ * 8  + 10, name:'南通'},
                            {value: idx * 28 + 80,  name:'淮安'},
                            {value: idx * 68  + 10,  name:'宿迁'},
                            {value: idx * 32  + 30,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 29 + 80,  name:'南京'},
                            {value: idx * 68  + 160,  name:'苏州'},
                            {value: idx * 32  + 10,  name:'无锡'},
                            {value: idx * 106  + 10,  name:'常州'},
                            {value: idx++ * 8  + 10, name:'徐州'},
                            {value: idx * 18 + 80,  name:'泰州'},
                            {value: idx * 64  + 5,  name:'连云港'},
                            {value: idx * 12  + 6,  name:'扬州'},
                            {value: idx * 106  + 3,  name:'盐城'},
                            {value: idx++ * 8  + 4, name:'南通'},
                            {value: idx * 18 + 80,  name:'淮安'},
                            {value: idx * 64  + 160,  name:'宿迁'},
                            {value: idx * 132  + 2,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 28 + 80,  name:'南京'},
                            {value: idx * 64  + 60,  name:'苏州'},
                            {value: idx * 32  + 30,  name:'无锡'},
                            {value: idx * 16  + 60,  name:'常州'},
                            {value: idx++ * 8  + 80, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 60,  name:'连云港'},
                            {value: idx * 32  + 20,  name:'扬州'},
                            {value: idx * 16  + 40,  name:'盐城'},
                            {value: idx++ * 8  + 3, name:'南通'},
                            {value: idx * 28 + 80,  name:'淮安'},
                            {value: idx * 64  + 5,  name:'宿迁'},
                            {value: idx * 32  + 8,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 5 + 80,  name:'南京'},
                            {value: idx * 64  + 10,  name:'苏州'},
                            {value: idx * 82  + 30,  name:'无锡'},
                            {value: idx * 16  + 60,  name:'常州'},
                            {value: idx++ * 68  + 10, name:'徐州'},
                            {value: idx * 18 + 80,  name:'泰州'},
                            {value: idx * 64  + 10,  name:'连云港'},
                            {value: idx * 92  + 20,  name:'扬州'},
                            {value: idx * 36  + 40,  name:'盐城'},
                            {value: idx++ * 48  + 80, name:'南通'},
                            {value: idx * 28 + 80,  name:'淮安'},
                            {value: idx * 64  + 60,  name:'宿迁'},
                            {value: idx * 62  + 20,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 28 + 80,  name:'南京'},
                            {value: idx * 64  + 60,  name:'苏州'},
                            {value: idx * 32  + 20,  name:'无锡'},
                            {value: idx * 16  + 40,  name:'常州'},
                            {value: idx++ * 78  + 80, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 60,  name:'连云港'},
                            {value: idx * 32  + 20,  name:'扬州'},
                            {value: idx * 16  + 40,  name:'盐城'},
                            {value: idx++ * 38  + 80, name:'南通'},
                            {value: idx * 28 + 80,  name:'淮安'},
                            {value: idx * 64  + 60,  name:'宿迁'},
                            {value: idx * 32  + 20,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 28 + 80,  name:'南京'},
                            {value: idx * 64  + 10,  name:'苏州'},
                            {value: idx * 32  + 30,  name:'无锡'},
                            {value: idx * 16  + 60,  name:'常州'},
                            {value: idx++ * 28  + 180, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 10,  name:'连云港'},
                            {value: idx * 32  + 30,  name:'扬州'},
                            {value: idx * 16  + 60,  name:'盐城'},
                            {value: idx++ * 218  + 10, name:'南通'},
                            {value: idx * 18 + 80,  name:'淮安'},
                            {value: idx * 64  + 160,  name:'宿迁'},
                            {value: idx * 32  + 320,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 80,  name:'南京'},
                            {value: idx * 64  + 10,  name:'苏州'},
                            {value: idx * 32  + 30,  name:'无锡'},
                            {value: idx * 16  + 60,  name:'常州'},
                            {value: idx++ * 18  + 180, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 160,  name:'连云港'},
                            {value: idx * 32  + 320,  name:'扬州'},
                            {value: idx * 16  + 640,  name:'盐城'},
                            {value: idx++ * 98  + 120, name:'南通'},
                            {value: idx * 128 + 80,  name:'淮安'},
                            {value: idx * 64  + 10,  name:'宿迁'},
                            {value: idx * 32  + 30,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 80,  name:'南京'},
                            {value: idx * 64  + 10,  name:'苏州'},
                            {value: idx * 32  + 30,  name:'无锡'},
                            {value: idx * 16  + 640,  name:'常州'},
                            {value: idx++ * 48  + 80, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 60,  name:'连云港'},
                            {value: idx * 32  + 30,  name:'扬州'},
                            {value: idx * 16  + 60,  name:'盐城'},
                            {value: idx++ * 38  + 20, name:'南通'},
                            {value: idx * 128 + 80,  name:'淮安'},
                            {value: idx * 64  + 160,  name:'宿迁'},
                            {value: idx * 32  + 320,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 80,  name:'南京'},
                            {value: idx * 64  + 10,  name:'苏州'},
                            {value: idx * 32  + 30,  name:'无锡'},
                            {value: idx * 16  + 640,  name:'常州'},
                            {value: idx++ * 68  + 10, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 60,  name:'连云港'},
                            {value: idx * 32  + 20,  name:'扬州'},
                            {value: idx * 16  + 40,  name:'盐城'},
                            {value: idx++ * 8  + 80, name:'南通'},
                            {value: idx * 128 + 8,  name:'淮安'},
                            {value: idx * 64  + 16,  name:'宿迁'},
                            {value: idx * 32  + 32,  name:'镇江'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'当月平均等待时间',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 80,  name:'南京'},
                            {value: idx * 64  + 16,  name:'苏州'},
                            {value: idx * 32  + 32,  name:'无锡'},
                            {value: idx * 16  + 60,  name:'常州'},
                            {value: idx++ * 48  + 10, name:'徐州'},
                            {value: idx * 128 + 80,  name:'泰州'},
                            {value: idx * 64  + 160,  name:'连云港'},
                            {value: idx * 32  + 30,  name:'扬州'},
                            {value: idx * 16  + 60,  name:'盐城'},
                            {value: idx++ * 8  + 80, name:'南通'},
                            {value: idx * 128 + 80,  name:'淮安'},
                            {value: idx * 64  + 10,  name:'宿迁'},
                            {value: idx * 32  + 30,  name:'镇江'}
                        ]
                    }
                ]
            }
        ]
    };


    //chart3


    var chartOption3 = {
        title : {
            text: '全年/本月接通率分城市统计',
            subtext: ''
        },
        tooltip : {
            trigger: 'axis'
        },
        legend: {
            data:['本月接通率','全年接通率'],
            x:'right'
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                axisLabel: { //横坐标60°倾斜
                    rotate: 60
                },
                data : ['南京', '苏州', '无锡', '徐州', '泰州', '连云港', '南通', '淮安', '盐城', '扬州', '镇江', '宿迁', '常州']
            }
        ],
        yAxis : [
            {
                type : 'value'
            }
        ],
        series : [
            {
                name:'本月接通率',
                type:'bar',
                data:[80.5, 74.9, 77.0, 83.2, 59.6, 66.7, 75.6, 62.2, 92.6, 90.0, 76.4, 83.3,85],
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'},
                        {type : 'min', name: '最小值'}
                    ]
                },
                markLine : {
                    data : [
                        {type : 'average', name: '平均值'}
                    ]
                },
                itemStyle: {
                    normal: {
                        barBorderRadius: 5, //设置柱状圆角
                        color:'#6cd7d9' //设置柱状颜色
                    }
                }
            },
            {
                name:'全年接通率',
                type:'bar',
                data:[82.6, 85.9, 59.0, 76.4, 78.7, 70.7, 75.6, 52.2, 68.7, 78.8, 66.0, 92.3,87],
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'},
                        {type : 'min', name: '最小值'}
                    ]
                },
                markLine : {
                    data : [
                        {type : 'average', name : '平均值'}
                    ]
                },
                itemStyle: {
                    normal: {
                        barBorderRadius: 5, //设置柱状圆角
                        color:'#cbbde7' //设置柱状颜色
                    }
                }
            }
        ]
    };




    //chart4

    var chartOption4 = {
        title : {
            text: '月度负载与月接通量对比统计',
            subtext: ''
        },
        tooltip : {
            trigger: 'axis'
        },
        legend: {
            data:['月度负载','月接通量'],
            x:'right'
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                axisLabel: { //横坐标60°倾斜
                    rotate: 60
                },
                data : ['南京', '苏州', '无锡', '徐州', '泰州', '连云港', '南通', '淮安', '盐城', '扬州', '镇江', '宿迁', '常州']
            }
        ],
        yAxis : [
            {
                type : 'value'
            }
        ],
        series : [
            {
                name:'月度负载',
                type:'bar',
                data:[180.5, 274.9, 177.0, 383.2, 595.6, 676.7, 765.6, 462.2, 592.6, 690.0, 796.4, 883.3,785],
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'},
                        {type : 'min', name: '最小值'}
                    ]
                },
                markLine : {
                    data : [
                        {type : 'average', name: '平均值'}
                    ]
                },
                itemStyle: {
                    normal: {
                        barBorderRadius: 5 //设置柱状圆角
                        //color:'#8EE9D6' //设置柱状颜色
                    }
                }
            },
            {
                name:'月接通量',
                type:'bar',
                data:[382.6, 485.9, 589.0, 676.4, 578.7, 770.7, 475.6, 582.2, 678.7, 768.8, 696.0, 492.3,387],
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'},
                        {type : 'min', name: '最小值'}
                    ]
                },
                markLine : {
                    data : [
                        {type : 'average', name : '平均值'}
                    ]
                },
                itemStyle: {
                    normal: {
                        barBorderRadius: 5 //设置柱状圆角
                        //color:'#8EE9D6' //设置柱状颜色
                    }
                }
            }
        ]
    };





    //chart5

    var chartOption5 = {
        timeline : {
            data : [
                '2015-01-01', '2015-02-01', '2015-03-01', '2015-04-01', '2015-05-01','2015-06-01',
                //{ name:'2015-06-01', symbol:'emptyStar6', symbolSize:8 },
                '2015-07-01', '2015-08-01', '2015-09-01', '2015-10-01', '2015-11-01','2015-12-01'
                //{ name:'2015-12-01', symbol:'star6', symbolSize:8 }
            ],
            label : {
                formatter : function(s) {
                    return s.slice(0, 7);
                }
            }
        },
        options : [
            {
                title : {
                    text: '12366关键词top5占比月度变化图',
                    subtext: ''
                },
                tooltip : {
                    trigger: 'item',
                    formatter: "{a} <br/>{b} : {c} ({d}%)"
                },


                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        center: ['50%', '45%'],
                        radius: '50%',
                        data:[
                            {value: idx * 128 + 80,  name:'营改增'},
                            {value: idx * 64  + 160,  name:'创客'},
                            {value: idx * 32  + 320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 80,  name:'其他'}

                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 40,  name:'营改增'},
                            {value: idx * 64  + 260,  name:'创客'},
                            {value: idx * 32  + 220,  name:'自贸区'},
                            {value: idx * 16  + 440,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 180,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 180,  name:'营改增'},
                            {value: idx * 64  + 560,  name:'创客'},
                            {value: idx * 32  + 420,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 580,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 480,  name:'营改增'},
                            {value: idx * 64  + 560,  name:'创客'},
                            {value: idx * 32  + 1320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 280,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 480,  name:'营改增'},
                            {value: idx * 64  + 360,  name:'创客'},
                            {value: idx * 32  + 320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 580,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 380,  name:'营改增'},
                            {value: idx * 64  + 460,  name:'创客'},
                            {value: idx * 32  + 1320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 987,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 328 + 80,  name:'营改增'},
                            {value: idx * 264  + 160,  name:'创客'},
                            {value: idx * 232  + 320,  name:'自贸区'},
                            {value: idx * 216  + 640,  name:'收入分配改革'},
                            {value: idx++ * 68  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 80,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 1180,  name:'营改增'},
                            {value: idx * 64  + 1160,  name:'创客'},
                            {value: idx * 32  + 320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 180,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 280,  name:'营改增'},
                            {value: idx * 64  + 1160,  name:'创客'},
                            {value: idx * 32  + 320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 80,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 380,  name:'营改增'},
                            {value: idx * 64  + 160,  name:'创客'},
                            {value: idx * 32  + 620,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 380,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 380,  name:'营改增'},
                            {value: idx * 64  +760,  name:'创客'},
                            {value: idx * 32  + 320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 8  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 580,  name:'其他'}
                        ]
                    }
                ]
            },
            {
                series : [
                    {
                        name:'关键词top5',
                        type:'pie',
                        data:[
                            {value: idx * 128 + 80,  name:'营改增'},
                            {value: idx * 164  + 160,  name:'创客'},
                            {value: idx * 132  + 320,  name:'自贸区'},
                            {value: idx * 16  + 640,  name:'收入分配改革'},
                            {value: idx++ * 38  + 1280, name:'全面二胎'},
                            {value: idx * 128 + 180,  name:'其他'}
                        ]
                    }
                ]
            }
        ]
    };



    require.config({
        paths: {
            echarts: '${ctx}/assets/echarts/build/dist'
        }
    });
    require(
            [
                'echarts',
                'echarts/chart/bar',
                'echarts/chart/scatter',
                'echarts/chart/pie',
                'echarts/chart/map',
                'echarts/chart/tree',
                'echarts/chart/funnel',
                'echarts/chart/gauge',
                'echarts/chart/wordCloud'

            ],
            function (ec) {
                //江苏省税务业务办理事项统计


                var chart1 = ec.init(document.getElementById('chart1'));
                chart1.setOption(chartOption1, true);


                var chart2 = ec.init(document.getElementById('chart2'));
                chart2.setOption(chartOption2, true);

                var chart3 = ec.init(document.getElementById('chart3'));
                chart3.setOption(chartOption3, true);

                //var chart4 = ec.init(document.getElementById('chart4'));
                //chart4.setOption(chartOption4, true);

                var chart5 = ec.init(document.getElementById('chart5'));
                chart5.setOption(chartOption5, true);


            }
    )







</script>
</body>
</html>
